package hy.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import java.util.Date;
import java.util.List;
import java.util.Map;

@Component
//@ConfigurationProperties(prefix = "person")
///@PropertySource(value = "classpath:person.yml",factory = YmlFactory.class)
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Person {
    @Value("${person.name}")
    String name;
    Integer age;
    Boolean married;
    Date birth;
    Map<String,String> maps;
    List<Object>lists;

    //@Autowired
    Dog dog;

}
